<template>
  <div>
    <van-search v-model="value" show-action placeholder="请输入搜索关键词" @search="onSearch" @cancel="onCancel" />
  </div>
</template>

<script>
import { Search } from 'vant';
export default {
  // 按需引入“vant”
  components: {
    [Search.name]: Search,
  },
  data () {
    return {
      value: '',
    };
  },
}
</script>

<style>
</style>